package com.x.chalk.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

 /**
 * 圈子;
 * @author : 冯文坡
 * @date : 2022-10-4
 */
@ApiModel(value = "圈子",description = "")
@Data
public class Mood implements Serializable{
    /** 圈子id */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(name = "圈子id",notes = "")
    private Long id ;
    /** 用户id */
    @ApiModelProperty(name = "用户id",notes = "")
    private Long uid ;
    /** 内容 */
    @ApiModelProperty(name = "内容",notes = "")
    private String info ;
    /** 创建时间 */
    @ApiModelProperty(name = "创建时间",notes = "")
    private Date createTime ;
    /** 点赞数量 */
    @ApiModelProperty(name = "点赞数量",notes = "")
    private int likeNum ;
    /** 评论数量 */
    @ApiModelProperty(name = "评论数量",notes = "")
    private int commentNum ;
    /** 转发数量 */
    @ApiModelProperty(name = "转发数量",notes = "")
    private int forwardNum ;
    /** 转发 */
    @ApiModelProperty(name = "转发",notes = "")
    private Long pid ;
    /** 类型 */
    @ApiModelProperty(name = "类型",notes = "1.文本类型 2.图文类型")
    private Integer type ;
    /** 状态;1.审核通过 2.审核失败 */
    @ApiModelProperty(name = "状态",notes = "1.审核通过 2.审核失败")
    private Integer state ;
     /** 模块类型;  */
     @ApiModelProperty(name = "模块类型",notes = "1.推荐 2.热门话题")
     private Integer moduleType ;

     public Mood(Long uid, String info) {
         this.uid = uid;
         this.info = info;
         this.createTime = new Date();
         this.likeNum = 0;
         this.commentNum = 0;
         this.forwardNum = 0;
         this.pid = 0L;
         this.type = 1;
         this.state = 1;
         this.moduleType=2;
     }
 }